Page({
  data: {
    windowHeight:'568',
    rankList:[{open_id:'xxx',avatar:'http://cdn.mzyun.tech/mzyun.png',user_nick:'明志科技',follower:'867'},
    {open_id:'xxx',avatar:'http://cdn.mzyun.tech/mzyun.png',user_nick:'明志科技',follower:'767'}
    ]
  },
  onLoad() {
     my.getSystemInfo({
      success: (res) => {
        this.setData({
          windowHeight: res.windowHeight
        })
      },
    });
    this.loadData()
  },
  async loadData(){
    const {cloud}=getApp();
    const res = await cloud.application.httpRequest({
      path:'/index.php/index/tb/getRank',
      method:'GET',
      params:{
        shop_id:getApp().globalData.shop_id
      }
    })
    this.setData({
      rankList:res
    })
  }
});
